package com.question.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.question.Dto.PaperAnswerDto;
import com.question.common.PageResult;
import com.question.entity.Paper;
import com.question.entity.PaperUser;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface PaperUserService  extends IService<PaperUser> {
    void adds(Integer pid, Integer uid);

    PageResult getpage(Integer pageNo, Integer pageSize);

    List<Paper> getByUserId(Integer id);

    void submit(Integer id, PaperAnswerDto paperAnswerDto);

    List<Paper> getfinishByUserId(Integer id);
}
